projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c55261
)
Revert "Check if lexical-binding is enabled before warning"
author
Mattias Engdegård
<mattiase@acm.org>
Wed, 3 Apr 2024 09:28:49 +0000
(11:28 +0200)
committer
Mattias Engdegård
<mattiase@acm.org>
Wed, 3 Apr 2024 09:28:49 +0000
(11:28 +0200)
This reverts commit
7de192680fdac6938f5704aea0310b85b0da9c5e
.
The logic is wrong (bug#70068).
lisp/emacs-lisp/bytecomp.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/bytecomp.el
b/lisp/emacs-lisp/bytecomp.el
index 3af7ede4c8ea3af356a08e09a090bf6dc2359771..5cff86784f07b2368e065b48666e8f0bf9f5c2f1 100644
(file)
--- a/
lisp/emacs-lisp/bytecomp.el
+++ b/
lisp/emacs-lisp/bytecomp.el
@@
-2234,8
+2234,7
@@
See also `emacs-lisp-byte-compile-and-load'."
(setq buffer-read-only nil
filename buffer-file-name))
;; Don't inherit lexical-binding from caller (bug#12938).
- (unless (or (local-variable-p 'lexical-binding)
- (null lexical-binding))
+ (unless (local-variable-p 'lexical-binding)
(let ((byte-compile-current-buffer (current-buffer)))
(displaying-byte-compile-warnings
(byte-compile-warn-x